package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.mapper.SysMemberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysGlodpotMapper;
import com.ruoyi.system.domain.SysGlodpot;
import com.ruoyi.system.service.ISysGlodpotService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-29
 */
@Service
public class SysGlodpotServiceImpl implements ISysGlodpotService 
{
    @Autowired
    private SysGlodpotMapper sysGlodpotMapper;
    @Autowired
    private SysMemberMapper sysMemberMapper;
    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysGlodpot selectSysGlodpotById(Long id)
    {
        return sysGlodpotMapper.selectSysGlodpotById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysGlodpot 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysGlodpot> selectSysGlodpotList(SysGlodpot sysGlodpot)
    {
        return sysGlodpotMapper.selectSysGlodpotList(sysGlodpot);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysGlodpot 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysGlodpot(SysGlodpot sysGlodpot)
    {

        return sysGlodpotMapper.insertSysGlodpot(sysGlodpot);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysGlodpot 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysGlodpot(SysGlodpot sysGlodpot)
    {
        return sysGlodpotMapper.updateSysGlodpot(sysGlodpot);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysGlodpotByIds(String ids)
    {
        return sysGlodpotMapper.deleteSysGlodpotByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysGlodpotById(Long id)
    {
        return sysGlodpotMapper.deleteSysGlodpotById(id);
    }
    public SysGlodpot findTypeUseridLinked(List<Long> typeids,Long userid,Long linked)
    {
       return sysGlodpotMapper.findTypeUseridLinked(typeids,userid,linked);
    }
    @Override
    public  Float findCoinBydate(List<Integer> list ,long userid)
    {

        return sysGlodpotMapper.findCoinBydate(list,userid);
    }
    @Override
    public  List<SysGlodpot> findTypeUserid(List<Integer> list ,long userid,Integer cate)
    {
        return sysGlodpotMapper.findTypeUserid(list,userid,cate);
    }
    public SysGlodpot findTypeUseridLinkedDue(List<Long> typeids,Long userid,Long linked,Long paydue)
    {
        return sysGlodpotMapper.findTypeUseridLinkedDue(typeids,userid,linked,paydue);
    }
    public Integer findDayNum(List<Long> typeids,Long userid,Boolean day)
    {
        return sysGlodpotMapper.findDayNum(typeids,userid,day);
    }
}
